package com.hdwe.icpms.admin.domain.vo;

import com.hdwe.icpms.admin.domain.ProtocolByte;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 设备协议字节视图对象 cpc_protocol_byte
 *
 * @author Lus
 * @date 2024-12-30
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = ProtocolByte.class)
public class ProtocolByteVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelProperty(value = "id")
    private Long id;

    /**
     * 协议ID
     */
    @ExcelProperty(value = "协议ID")
    private Long protocolId;

    /**
     * 协议元数据ID
     */
    @ExcelProperty(value = "协议元数据ID")
    private Long protocolMetadataId;

    /**
     * 元数据类别
     */
    @ExcelProperty(value = "元数据类别", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "icpms_protocol_metadata_category")
    private String protocolMetadataCategory;

    /**
     * 接收报文字节开始编号
     */
    @ExcelProperty(value = "接收报文字节开始编号")
    private Integer receiveByteStartIndex;

    /**
     * 接收报文字节结束编号
     */
    @ExcelProperty(value = "接收报文字节结束编号")
    private Integer receiveByteEndIndex;

    /**
     * 响应报文字节开始编号
     */
    @ExcelProperty(value = "响应报文字节开始编号")
    private Integer replyByteStartIndex;

    /**
     * 响应报文字节结束编号
     */
    @ExcelProperty(value = "响应报文字节结束编号")
    private Integer replyByteEndIndex;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_able_status")
    private String status;

    /**
     * 创建人
     */
    @ExcelProperty(value = "创建人")
    private Long createUser;

    /**
     * 修改人
     */
    @ExcelProperty(value = "修改人")
    private Long updateUser;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;


}
